/*
 * @Author: zlc
 * @Date: 2022-07-27 16:04:00
 * @LastEditTime: 2022-07-27 16:56:02
 * @LastEditors: zlc
 * @Description: 
 * @FilePath: \teachernotice\store\theme\theme.js
 */
import {
	MINI_PROGRAM_THEME,
} from '@/store/theme/mutaion-type.js'
import {
	setStorage,
	getStorage
} from '@/common/util/storage.js'
export default {
	state: {
        theme:getStorage('theme')||{}
	},

	mutations: {
		/**
		 * @description: 主题
		 * @param {Object} state 
		 * @param {Object} payloa
		 */
		[MINI_PROGRAM_THEME](state, payload) {
            state.theme = payload
			setStorage('theme', state.theme)
		},

	},

	actions: {
		
	},
}
